<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <table id="exam_namedg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'学期名称',title:'学期名称',width:40"></th>
                <th data-options="field:'年级ID',title:'年级',width:20,editor:{type:'combobox',options:{
                required:true,
                url:'/compent/Util/gradeNameList.html'
                }},formatter:function(value,row,index){
                    return row.年级名称;
                }"></th>
                <th data-options="field:'考试名称',title:'考试名称',width:40,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'登分终止日期',title:'登分终止日期',width:40,editor:{type:'datetimebox',options:{required:true,editable:false,showSeconds:false}}"></th>
                <th data-options="field:'考试科目',title:'考试科目',width:40,editor:{type:'textbox',options:{
                required:true}},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ (value?value:'') + '</span>';
                }"></th>
                <th data-options="field:'满分数',title:'满分数',width:40,editor:{type:'textbox',options:{
                required:true}},
                formatter: function(value, row, index) {
                    return '<span class=\'note\' title=\''+value+'\'>'+ (value?value:'') + '</span>';
                }"></th>
                <th data-options="field:'考试类型',title:'考试类型',width:20,editor:{type:'combobox',options:{
                required:true,
                data:[{'value':1,'text':'正常考试',selected: true},{'value':2,'text':'模拟考试'}]
                }},formatter: function(value, row, index) {
                    if(value == 1) return '正常考试';
                    return '模拟考试';
                }"></th>
                <th data-options="field:'查看分数',title:'查看分数',width:20,editor:{type:'combobox',options:{
                required:true,
                data:[{'value':'√','text':'√',selected: true},{'value':'×','text':'×'}]
                }}"></th>
                <th data-options="field:'登分年级ID',title:'登分年级ID',width:20,editor:{type:'combobox',options:{
                required:true,
                url:'/compent/Util/gradeNameList.html'
                }},formatter:function(value,row,index){
                    return row.登分年级;
                }"></th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        $(function(){
            var url = "/examScore/exam_name";
            initDatagridAdmin("exam_name",url,1,1,1,1,0);
        })  
    </script>
</body>
</html>